<#-- @ftlvariable name="entity" type="com.xci.edu.core.entity.EduCourseware" -->
<#include "/sys/_layout.ftl">
<!doctype html>
<html>
<head>
    <@pageHeader/>
</head>
<body>
<@pageLoading/>
<div class="jxpanel winpanel" data-fit="true">
    <form id="editform" class="jxform" method="post"
          action="${saveUrl("/background/eduCourseware/","createSave","updateSave")}">
        <input name="id" value="${entity.id}" type="hidden">
        <table class="table jxtable-form">
            <tr>
                <th class="w-100px">课程名称</th>
                <td>
                    <input class="form-control" id="name" name="name" value="${entity.name}" maxlength="50"
                           data-validate="required: [true,'请输入课程名称']" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>本章节学时(秒)</th>
                <td>
                    <input class="form-control jxnumber" id="period" name="period" type="number" maxlength="9"
                           data-validate="required: [true,'请输入本章节学时(秒)']"
                           max="999999999" data-max="999999999" data-min="0"
                           data-decimals="0" data-step="1" value="${entity.period}" autocomplete="off"/>
                </td>
            </tr>

            <tr>
                <th>科目名称</th>
                <td>
                    <select class="form-control jxselect" name="eduCategoryId" data-text-field="eduCategoryName"
                            data-allow-clear="true" data-validate="required: [true,'请选择科目名称']">
                        <option></option>
                        <@eduCategorySelectOption selectedValue=entity.eduCategoryId></@eduCategorySelectOption>
                    </select>
                </td>
            </tr>
            <tr>
                <th>课件类型</th>
                <td>
                    <select name="courseType" class="jxselect form-control" data-select-submit="true"
                            selectedValue="${entity.courseType}" data-validate="required: [true,'请输入课件类型']"
                            data-allow-clear="false" data-width="110">
                        <option value="0" ${web.isSelected("${entity.courseType}"=="0")}>图片</option>
                        <option value="1" ${web.isSelected("${entity.courseType}"=="1")}>视频</option>
                    </select>
                </td>
            </tr>
            <tr>
                <th>排序号</th>
                <td>
                    <input class="form-control" id="path" name="path" value="${entity.path}" maxlength="8"
                           data-validate="required: [true,'请输入排序号']" autocomplete="off"/>
                </td>
            </tr>
        </table>
    </form>
    <div class="panel-footer text-right">
        <@editFormDialogCommand/>
    </div>
</div>
<@editFormPageFooter/>
</body>
</html>
